' ***^^^***|||***^^^***
' 
'  This file is regenerated until it's edited. Delete the file to force regeneration.

'  NOTE: This denotes the way the file was created and it's possible the 
'        generation type has since changed.
'        Check the generation script for the curent state of the file.

' %%%###%%%824e011e733c1a407d8a8767470dfa05%%%###%%%
' %%%##NoWS##%%%a98f151e0b7ce15a367e3ff8a6c0fd75%%%##NoWS##%%%
' ***^^^***|||***^^^***

  
'************************************************************************************
' Copyright © 2003-2006 Kathleen Dollard
'
' This software is provided 'as-is', without any express or implied warranty. In no 
' event will the author be held liable for any damages arising from the use of this
' software.
' 
' You may use this software for any purpose, including commercial applications, 
' and you may redistribute this software as part of application delivery: however, 
' this copyright notice may not be removed and you may not otherwise redistribute 
' this software directly other than providing a link to wwww.gendotnet.com. 
'
' You may alter this software to better server your needs (I'd like to hear about your 
' changes in order to make the software better). If you alter the softwre, you must  
' clearly mark it as altered and must not be misrepresented as the original software.
' nor wholly your original work.
'*************************************************************************************

Option Explicit On
Option Strict On

Imports System
Imports System.Collections.Generic



Public Class DbsView
   Implements IViewOrTable

   Private ReadOnly Property DbsDataStructures1() As DbsDataStructureCollection Implements IViewOrTable.DbsDataStructures
      Get
         Return MyBase.DbsDataStructures
      End Get
   End Property

   Private Property Name1() As String Implements IViewOrTable.Name
      Get
         Return MyBase.Name
      End Get
      Set(ByVal value As String)
         MyBase.Name = value
      End Set
   End Property

   Private Property PluralName1() As String Implements IViewOrTable.PluralName
      Get
         Return MyBase.PluralName
      End Get
      Set(ByVal value As String)
         MyBase.PluralName = value
      End Set
   End Property

   Private Property Schema1() As String Implements IViewOrTable.Schema
      Get
         Return MyBase.Schema
      End Get
      Set(ByVal value As String)
         MyBase.Schema = value
      End Set
   End Property

   Private Property SingularName1() As String Implements IViewOrTable.SingularName
      Get
         Return MyBase.SingularName
      End Get
      Set(ByVal value As String)
         MyBase.SingularName = value
      End Set
   End Property

   Private Property OriginalName1() As String Implements IViewOrTable.OriginalName
      Get
         Return MyBase.OriginalName
      End Get
      Set(ByVal value As String)
         MyBase.OriginalName = value
      End Set
   End Property

   Private ReadOnly Property ViewOrTableColumns() As IViewOrTableColumnCollection Implements IViewOrTable.ViewOrTableColumns
      Get
         Return MyBase.DbsViewColumns
      End Get
   End Property

   Private ReadOnly Property DbsPrimaryKeys1() As DbsPrimaryKeyCollection Implements IViewOrTable.DBSPrimaryKeys
      Get
         ' TODO: Explore primary keys in views
         Return Nothing
      End Get
   End Property

   Public ReadOnly Property IsTable() As Boolean Implements IViewOrTable.IsTable
      Get
         Return False
      End Get
   End Property

   Private ReadOnly Property Attributes1() As Attributes Implements IViewOrTable.Attributes
      Get
         Return MyBase.Attributes
      End Get
   End Property
End Class

Public Class DbsViewCollection
      Default Public Overloads ReadOnly Property Item(ByVal name As String) As DbsView
         Get
            For Each view As DbsView In Me
               If view.Name = name OrElse view.OriginalName = name Then
                  Return view
               End If
            Next
            Return Nothing
         End Get
      End Property
   End Class

